Repository navigation
ci: a preview theme for each pull request of a Shopify theme, which Fulldev Sites shows - #36
Merged
Merged
Conversation
…ulldev Sites shows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…get, and pin Shopify CLI 5.0.0 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an older one changes nothing Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd jobs queue Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ame, also after a rebase Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l the job, and no token skips Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keeps its preview and loses it on close; the token is optional; a rerun takes a dead link away Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e header reads plainly Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fulldev Sites shows each running version of a website with its preview, but a Shopify theme had no preview per pull request. This adds a reusable Theme preview workflow: each push to a pull request into the default branch mirrors the branch to an unpublished theme named
#<number> <tag> <branch>(the tag is the repository's, and Sites's cms/ branches stay whole at the end, which its bar reads), reports the preview link as the commit statusfulldev/theme-preview/<number>, which Sites reads, and closing the pull request or moving it off the default branch deletes the theme and takes the link away.It only ever touches that pull request's theme (never a merchant's theme or another repository's preview on the same store, also after a rebase), reads the pull request as it is when each queued job runs, skips without the store or the secret, and pins Shopify CLI 5.0.0. Callers run it on
pull_request_target, as GitHub skipspull_requestworkflows during a merge conflict; it only uploads a same-repository branch's files, never runs them.Proved on the dev store fulldev-liquid-template-review through fulldotdev/liquid-template#18 and throwaway pull requests (#19, #20, #21, closed): a theme per pull request, reused on a new push and after a force-push, deleted on close with its link taken away. Merge this first; then #18 is pinned to the merge commit on main.
Created with Claude Opus 5.5 in Claude Code, reviewed by GPT Sol.
🤖 Generated with Claude Code